package com.dongdong.bookstore.module.ums.viewmodel;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * @author chiangkai
 * @date 2021-10-29
 * @email chiangkk@163.com
 */
@Data
@Accessors(chain = true)
@ApiModel(value="ResourceCategoryParam对象", description="资源分类视图模型")
public class ResourceCategoryParam {

    @NotEmpty(message = "分类名称不能为空")
    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "分类顺序")
    private Integer sort;
}
